package byx.container.annotation.CustomInjectTest.b;

import byx.container.annotation.extension.impl.CustomInjector;
import byx.container.annotation.annotation.Register;
import byx.container.core.Container;
import byx.container.core.ObjectFactory;

@Register
public class MyInjector2 implements CustomInjector {
    private final String s;

    public MyInjector2(String s) {
        this.s = s;
    }

    @Override
    public ObjectFactory<?> getObjectFactory(Container container) {
        return s::length;
    }
}
